package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 车位信息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_park_info")
public class ParkInfo extends Model<ParkInfo> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "aid", type = IdType.ASSIGN_ID)
    private String aid;
    /**
     * 所在地区编码
     */
    @TableField("region")
    private String region;
    /**
     * 所在地区名称
     */
    @TableField("region_name")
    private String regionName;
    /**
     * 停车场位置
     */
    @TableField("address")
    private String address;
    /**
     * 车位号
     */
    @TableField("space_number")
    private String spaceNumber;
    /**
     * 熊猫泊车车位号
     */
    @TableField("sys_space_number")
    private String sysSpaceNumber;
    /**
     * 说明
     */
    @TableField("note")
    private String note;
    /**
     * 提交时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 审核状态:0未审核1审核通过2审核未通过
     */
    @TableField("approval_status")
    private Integer approvalStatus;
    /**
     * 审核结果:不通过需要填写原因
     */
    @TableField("approval_result")
    private String approvalResult;
    /**
     * 审核时间
     */
    @TableField("approval_time")
    private LocalDateTime approvalTime;
    /**
     * 审核人单位
     */
    @TableField("approval_unit")
    private String approvalUnit;
    /**
     * 申请人
     */
    @TableField("applicant")
    private String applicant;
    /**
     * 停车场标识
     */
    @TableField("park_id")
    private String parkId;
    /**
     * 车位大小
     */
    @TableField("park_space_size")
    private String parkSpaceSize;
    /**
     * 车位类型
     */
    @TableField("park_space_type")
    private String parkSpaceType;
    /**
     * 审核人
     */
    @TableField("approval_user")
    private String approvalUser;
    /**
     * 车位平面图
     */
    @TableField("plan_pic")
    private String planPic;

    public void freeData() {
        this.aid = null;
        this.region = null;
        this.regionName = null;
        this.address = null;
        this.spaceNumber = null;
        this.sysSpaceNumber = null;
        this.note = null;
        this.addTime = null;
        this.updateTime = null;
        this.approvalStatus = null;
        this.approvalResult = null;
        this.approvalTime = null;
        this.approvalUnit = null;
        this.applicant = null;
        this.parkId = null;
        this.parkSpaceSize = null;
        this.parkSpaceType = null;
        this.approvalUser = null;
        this.planPic = null;
    }

}
